<style>
	table{
		border-collapse:collapse;
		width:100%;
	}
	tr td{
		padding:2px;
	}
	tr.main_header td{
		border-bottom:2px solid #000;
	}
	tr.center td{
		text-align:center;
		background:#E6E6E6;
	}
	tr.sub_total td{
		background:#F3F3F3;
	}
	tr.total td{
		border:1px solid #000;
	}
	tr.heading td{
		background:none;
		font-weight:bold;
		font-size:14px;
		text-transform:uppercase;
	}
	.left{ text-align:left;}
	.money{ text-align:right;padding-right:10px;}
	.right{ text-align:right;}
</style>

<table>
	<thead>
		<tr class="center heading">
			<td colspan="2">Yearly Reports</td>
		</tr>
		<tr class="main_header center">
			<td>Month</td>
			<td>Amount</td>
		</tr>
	</thead>
	<?foreach($report->values as $k => $v):?>
		<tbody>
			<thead>
				<tr class="heading center">
					<td colspan="2"><?=$k;?></td>
				</tr>
			</thead>
			<?foreach($v as $vk => $d):?>
				<tr>
					<td><?=$vk;?></td>
					<td class="money"><?=number_format($d,2,'.',',');?></td>
				</tr>
			<?endforeach;?>
		</tbody>
	<?endforeach;?>
</table>